package cn.botter.subject.domain.convert;


import cn.botter.subject.domain.entity.SubjectCategoryBO;
import cn.botter.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectCategoryConverter {

    SubjectCategoryConverter INSTANCE = Mappers.getMapper(SubjectCategoryConverter.class);

    /**
     * 自动帮我们转
     * @param subjectCategoryBO
     * @return
     */
    SubjectCategory convertBoToCategory(SubjectCategoryBO subjectCategoryBO);


    List<SubjectCategoryBO> convertBoToCategoryList(List<SubjectCategory> categoryList);
}
